package com.zdp.es.constants;

/**
 * @author ZhengDp
 * @Date 2023/7/22 16:16
 */
public class HotelConstants {
    public static final String MAPPING_TEMPLATE = "{\n" +
            "    \"mappings\":{\n" +
            "        \"properties\":{\n" +
            "            \"id\":{\n" +
            "                \"type\":\"keyword\",\n" +
            "                \"index\":true\n" +
            "            },\n" +
            "            \"name\":{\n" +
            "                \"type\":\"text\",\n" +
            "                \"index\":true,\n" +
            "                \"copy_to\":\"all\"\n" +
            "            },\n" +
            "            \"address\":{\n" +
            "                \"type\":\"keyword\",\n" +
            "                \"index\":false\n" +
            "            },\n" +
            "            \"price\":{\n" +
            "                \"type\":\"integer\",\n" +
            "                \"index\":true\n" +
            "            },\n" +
            "            \"score\":{\n" +
            "                \"type\":\"integer\",\n" +
            "                \"index\":true\n" +
            "            },\n" +
            "            \"brand\":{\n" +
            "                \"type\":\"keyword\",\n" +
            "                \"index\":true\n" +
            "            },\n" +
            "            \"city\":{\n" +
            "                \"type\":\"keyword\",\n" +
            "                \"index\":true\n" +
            "            },\n" +
            "            \"starName\":{\n" +
            "                \"type\":\"keyword\",\n" +
            "                \"index\":true\n" +
            "            },\n" +
            "            \"business\":{\n" +
            "                \"type\":\"keyword\",\n" +
            "                \"index\":true,\n" +
            "                \"copy_to\":\"all\"\n" +
            "            },\n" +
            "            \"location\":{\n" +
            "                \"type\":\"geo_point\"\n" +
            "            },\n" +
            "            \"pic\":{\n" +
            "                \"type\":\"keyword\",\n" +
            "                \"index\":false\n" +
            "            },\n" +
            "            \"all\":{\n" +
            "                \"type\":\"text\"\n" +
            "            }\n" +
            "        }\n" +
            "    }\n" +
            "}";
}
